//
//  MaintenanceDetaiHeaderView.m
//  PropertyMananger
//
//  Created by bh on 17/2/9.
//  Copyright © 2017年 BH. All rights reserved.
//

#import "MaintenanceDetaiHeaderView.h"

@implementation MaintenanceDetaiHeaderView
-(instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
    
        self.tipLabel = [[UILabel alloc]init];
        [self.contentView addSubview:self.tipLabel];
        self.tipLabel.backgroundColor = BHColor(215, 152, 2);
        
        
        [self.tipLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.leading.equalTo(self).with.offset(15);
            make.centerY.equalTo(self).with.offset(0);
            make.size.mas_equalTo(CGSizeMake(3, 15));
        }];
        
        self.titleLabel = [[UILabel alloc]init];
        [self.contentView addSubview:self.titleLabel];
        self.titleLabel.textColor = BHColor(51, 51, 51);
        
        self.titleLabel.font = BHFont(15);
        self.titleLabel.textAlignment = NSTextAlignmentLeft;
        
        [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.leading.equalTo(self.tipLabel.mas_trailing).with.offset(10);
            make.centerY.equalTo(self).with.offset(0);
            make.size.mas_equalTo(CGSizeMake(100, 25));
        }];

        self.contentView.backgroundColor = BHColor(238, 238, 238);
    }

    return self;
}


@end
